using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Web.UI;


namespace Ajax.Logging
{
    public abstract class BaseListener
    {
        private ExceptionManager _owner;

        public abstract string CreateScript
        {
            get;
        }

        public abstract IEnumerable<ScriptReference> ScriptReferences
        {
            get;
        }

        protected ExceptionManager Owner
        {
            [System.Diagnostics.DebuggerStepThrough()]
            get
            {
                return _owner;
            }
        }

        [Browsable(false)]
        [EditorBrowsable(EditorBrowsableState.Never)]
        public void SetOwner(ExceptionManager owner)
        {
            _owner = owner;
        }
    }
}